<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="../common/jspcommon.jsp"%>

<c:set var="parents" value="0" scope="page" />
					<ul>
						<c:forEach items="${memberList}" var="member" varStatus="v">
							<c:if test="${sessionScope.member.identifier == member.identifier }">
								<li>
									<img src="${member.avatar}" style="cursor: pointer;"
										onclick="setHash('#toSelfAvatar')" width="34" height="34"
										alt="果果街" />
									<strong>${member.username}</strong>
									<c:if test="${member.constellation!=null && member.constellation!=''
											 && member.constellation!=13 }">
									${member.constellationLabel }的${member.roleLabel }							
									</c:if>
								</li>
							</c:if>
						</c:forEach>
						<c:forEach items="${memberList}" var="member" varStatus="v">
							<c:if test="${sessionScope.member.identifier != member.identifier && (member.role=='01' || member.role=='02') }">
								<li>
									<img src="${member.avatar}" width="34" height="34" alt="果果街" />
									<strong>${member.username}</strong>
									<c:if test="${member.constellation!=null && member.constellation!='' && member.constellation!=13 }">
									${member.constellationLabel }的${member.roleLabel }							
									</c:if>
								</li>
								<c:set value="${parents+1 }" var="parents" scope="page" />
							</c:if>
						</c:forEach>
					</ul>
					<c:if test="${parents==0 }">
						<br />
						<a href="javascript:void(0);" onclick="setHash('#toAddMember')">添加成员</a>
					</c:if>
					<c:if test="${parents>=1 }">
						<br />
						<c:forEach items="${memberList}" var="member">
							<c:if test="${sessionScope.member.identifier!=member.identifier && (member.role=='01' || member.role=='02') }">
								<a href="javascript:void(0);" onclick="changeUser('${member.identifier }')">切换到${member.roleLabel }的帐号</a>
								<span id="changeUserId" style="display: none;">${member.identifier }</span>
								<span id="changeUserUsername" style="display: none;">${member.username }</span>
							</c:if>
						</c:forEach>
					</c:if>
					<div class="clear"></div>